	function entry() {
		alert("亲，请先登录哦~~");
	}
	
//	检验登录
	function check() {
		var username = document.getElementById('username').value;
		var password = document.getElementById('password').value;
		if(username == '') {
			document.getElementById('u-tip').innerHTML = "用户名不能为空";

		} else {
			document.getElementById('u-tip').innerHTML = "";
		}

		if(username == "15294816328") {
			if(password !== '123456') {
				document.getElementById('p-tip').innerHTML = "密码错误";

			} else {
				document.getElementById('p-tip').innerHTML = "";
				alert("亲，登录成功~~");
				return;
			}
			if(password == '') {
				document.getElementById('p-tip').innerHTML = "密码不能为空";
				return;
			}
		}

		if(password == '') {
			document.getElementById('p-tip').innerHTML = "密码不能为空";
			return;
		}
	}
	
//	li的选中效果
	window.onload = function(){
        var as = document.getElementsByTagName("a");
        var len = as.length;
        for(var i=0;i<len;i++){
            as[i].onclick = function(){
                for(var j=1;j<len;j++){
                    as[j].style.backgroundColor = "";
                }
                this.style.backgroundColor = "burlywood";
            };
        }
    };